var url = 'https://static.micheliafigo.xyz/books/1581347142049.jpeg'

// let ArrayBuffer =

async function fn() {
  let response = await fetch(url, {
    method: 'GET',
    headers: {
      Range: 'bytes=100-9999999000',
      'If-Range': 'FF70503A7175D736D973ECE83554EE84'
    }
  })

  const contentLength = +response.headers.get('Content-Length')
  const rangeLength = response.headers.get('Content-Range')
  // console.dir(response)
  for (const [key, value] of response.headers) {
    console.log(`${key}:${value}`)
  }
}

fn()
